Packet processing method and device

ABSTRACT

A packet processing method includes receiving, by an aggregation gateway, a first tunnel establishment request message sent by a home gateway, and sending a first tunnel establishment success message to the home gateway; receiving, by the aggregation gateway, a second tunnel establishment request message sent by the home gateway, and sending a second tunnel establishment success message to the home gateway; associating, by the aggregation gateway, a first tunnel with a second tunnel according to an identifier of the home gateway; and sending a downlink packet to the home gateway by using the first tunnel and/or the second tunnel. The embodiments of the present application may increase bandwidth.

CROSS-REFERENCE TO RELATED APPLICATIONS

This is a continuation of U.S. patent application Ser. No. 16/371,934,filed on Apr. 1, 2019, which is a continuation of U.S. patentapplication Ser. No. 14/992,246, filed on Jan. 11, 2016, now U.S. Pat.No. 10,250,410, which is a continuation of Int'l Patent App. No.PCT/CN2013/079328, filed on Jul. 12, 2013, all of which are incorporatedby reference.

TECHNICAL FIELD

Embodiments of the present application relate to communicationstechnologies, and in particular, to a packet processing method and adevice.

BACKGROUND

A home gateway links an access network outside of a family to a networkinside the family and manages a home area network by hiding complexnetwork configuration from a user.

With an increase in home area network applications, home applicationsand digital services available for home users are also increasing. Thehome area network becomes a highly dynamic environment, and a home areanetwork device may access the home area network by using a wired networkor a wireless network at any time. When the home area network deviceaccesses the home area network, a home gateway corresponding to the homearea network receives an uplink data packet sent by the home areanetwork device, and directly forwards the uplink data packet to theInternet by using a physical line; or the home gateway receives adownlink data packet sent by the Internet by using the physical line andthen forwards the downlink data packet to the home area network device.

Because an addition of a physical line costs lots of manpower andmaterial resources, transmission bandwidth between the home gateway andthe Internet is restricted by the physical line and is difficult toimprove, and transmission efficiency is low.

SUMMARY

Embodiments of the present application provide a packet processingmethod and a device, so as to increase bandwidth.

According to a first aspect, an embodiment of the present applicationprovides a packet processing method, including: receiving, by anaggregation gateway, a first tunnel establishment request message sentby a home gateway, where the first tunnel establishment request messageis used to request for establishing a first tunnel, and the first tunnelestablishment request message includes an identifier of the home gatewayand a first address, and a first source address of the first tunnel isthe first address, a destination address of the first tunnel is anaddress of the aggregation gateway, and the first address is an addressof the home gateway on a first access network, where the address isobtained by the home gateway; sending, by the aggregation gateway, afirst tunnel establishment success message to the home gateway torespond to the first tunnel establishment request message; receiving, bythe aggregation gateway, a second tunnel establishment request messagesent by the home gateway, where the second tunnel establishment requestmessage is used to request for establishing a second tunnel, and thesecond tunnel establishment request message includes the identifier ofthe home gateway and a second address, and a second source address ofthe second tunnel is the second address; a destination address of thesecond tunnel is the address of the aggregation gateway, and the secondaddress is an address of the home gateway on the second access network,where the address is obtained by the home gateway; sending, by theaggregation gateway, a second tunnel establishment success message tothe home gateway to respond to the second tunnel establishment requestmessage; and associating, by the aggregation gateway, the first tunnelwith the second tunnel according to the identifier of the home gateway,and sending a downlink data packet to the home gateway by using thefirst tunnel and/or the second tunnel.

With reference to the first aspect, in a first possible implementationmanner of the first aspect, the sending, by the aggregation gateway, adownlink data packet to the home gateway by using the first tunneland/or the second tunnel includes: performing, by the aggregationgateway, Generic Routing Encapsulation GRE for the downlink data packetto obtain a downlink GRE packet, where the downlink GRE packet includesa downlink serial number, and the downlink serial number is used toindicate a sequence in which the aggregation gateway sends the downlinkGRE packet; and sending, by the aggregation gateway, the downlink GREpacket to the home gateway by using the first tunnel and/or the secondtunnel.

With reference to the first possible implementation manner of the firstaspect, in a second possible implementation manner of the first aspect,where before the sending, by the aggregation gateway, a downlink datapacket to the home gateway by using the first tunnel and/or the secondtunnel, the method further includes: determining, by the aggregationgateway, whether available bandwidth of the first tunnel is less thanbandwidth required for transmitting the downlink data packet; and if theavailable bandwidth of the first tunnel is not less than the bandwidthrequired for transmitting the downlink data packet, selecting, by theaggregation gateway, to send the downlink data packet to the homegateway by using the first tunnel.

With reference to the first aspect and any one of the first and secondpossible implementation manners of the first aspect, in a third possibleimplementation manner of the first aspect, the method further includes:receiving, by the aggregation gateway, an uplink GRE packet sent by thehome gateway by using the first tunnel and/or the second tunnel, anddecapsulating the uplink GRE packet to obtain an uplink data packet andan uplink serial number corresponding to the uplink data packet;determining, by the aggregation gateway, whether the uplink serialnumber is equal to a serial number supposed to be sent at the currentmoment, where the serial number supposed to be sent at the currentmoment is a serial number of the last uplink data packet that hasalready been sent by the aggregation gateway at the current moment plusa constant value, and the constant value is a natural number; if theuplink serial number is equal to the serial number supposed to be sentat the current moment, sending, by the aggregation gateway, the uplinkdata packet corresponding to the uplink serial number; and if the uplinkserial number is not equal to the serial number supposed to be sent atthe current moment, caching, by the aggregation gateway, the uplink datapacket corresponding to the uplink data packet.

With reference to the first aspect and any one of the first to thirdpossible implementation manners of the first aspect, in a fourthpossible implementation manner of the first aspect, where before thesending, by the aggregation gateway, a downlink data packet to the homegateway by using the first tunnel and/or the second tunnel, the methodfurther includes: receiving, by the aggregation gateway, bandwidthinformation of the first tunnel and bandwidth information of the secondtunnel, where the bandwidth information is sent by the home gateway; anddetermining, by the aggregation gateway, the available bandwidth of thefirst tunnel and available bandwidth of the second tunnel according tothe bandwidth information.

According to a second aspect, an embodiment of the present applicationprovides a packet processing method, including: obtaining, by a homegateway, a first address of the home gateway on a first access network,and establishing a first tunnel from the home gateway to an aggregationgateway according to the first address, where a source address of thefirst tunnel is the first address, and a destination address of thefirst tunnel is an address of the aggregation gateway; obtaining, by thehome gateway, a second address of the home gateway on a second accessnetwork, and establishing a second tunnel from the home gateway to theaggregation gateway according to the second address, where a sourceaddress of the second tunnel is the second address, and a destinationaddress of the second tunnel is the address of the aggregation gateway;and receiving, by the home gateway, an uplink data packet sent by a userequipment, and sending the uplink data packet to the aggregation gatewayby using the first tunnel and/or the second tunnel.

With reference to the second aspect, in a first possible implementationmanner of the second aspect, where the establishing, by the homegateway, a first tunnel from the home gateway to an aggregation gateway,includes: sending, by the home gateway, a first tunnel establishmentrequest message to the aggregation gateway by using the first accessnetwork, where the first tunnel establishment request message is used torequest for establishing the first tunnel, and the first tunnelestablishment request message includes an identifier of the home gatewayand the first address; and receiving, by the home gateway, a firsttunnel establishment success message sent by the aggregation gateway;the establishing, by the home gateway, a second tunnel from the homegateway to the aggregation gateway according to the second address,includes: sending, by the home gateway, a second tunnel establishmentrequest message to the aggregation gateway by using the second accessnetwork, where the second tunnel establishment request message is usedto request for establishing the second tunnel, and the second tunnelestablishment request message includes the identifier of the homegateway and the second address; and receiving, by the home gateway, asecond tunnel establishment success message sent by the aggregationgateway.

With reference to the second aspect or the first possible implementationmanner of the second aspect, in a second possible implementation mannerof the second aspect, the obtaining, by a home gateway, a first addressof the home gateway on a first access network, includes: sending, by thehome gateway, an IP address request message to a first gatewaycorresponding to the first access network; and receiving, by the homegateway, an IP address response message sent by the first gateway, wherethe IP address response message includes the first address of the homegateway on the first access network, and the first address is a first IPaddress; the obtaining, by the home gateway, a second address of thehome gateway on a second access network, includes: sending, by the homegateway, an IP address request message to a second gateway correspondingto the second access network; and receiving, by the home gateway, an IPaddress response message sent by the second gateway, where the IPaddress response message includes the second address of the home gatewayon the second access network, and the second address is a second IPaddress.

With reference to the second aspect and any one of the first and secondpossible implementation manners of the second aspect, in a thirdpossible implementation manner of the second aspect, the sending, by thehome gateway, the uplink data packet to the aggregation gateway by usingthe first tunnel and/or the second tunnel includes: performing, by thehome gateway, Generic Routing Encapsulation GRE for the uplink datapacket to obtain an uplink GRE packet, where the uplink GRE packetincludes an uplink serial number, and the uplink serial number is usedto indicate a sequence in which the home gateway sends the uplink GREpacket; and sending, by the home gateway, the uplink GRE packet to theaggregation gateway by using the first tunnel and/or the second tunnel.

With reference to the third possible implementation manner of the secondaspect, in a fourth possible implementation manner of the second aspect,before the sending, by the home gateway, the uplink data packet to theaggregation gateway by using the first tunnel and/or the second tunnel,the method further includes: determining, by the home gateway, whetheravailable bandwidth of the first tunnel is less than bandwidth requiredfor transmitting the uplink data packet; selecting, by the home gateway,to send the uplink data packet to the aggregation gateway by using thefirst tunnel when it is determined that the available bandwidth of thefirst tunnel is not less than the bandwidth required for transmittingthe uplink data packet; and selecting, by the home gateway, to send theuplink data packet to the aggregation gateway by using the second tunnelwhen it is determined that the available bandwidth of the first tunnelis less than the bandwidth required for transmitting the uplink datapacket.

With reference to the second aspect and any one of the first to fourthpossible implementation manners of the second aspect, in a fifthpossible implementation manner of the second aspect, the method furtherincludes: receiving, by the home gateway, a downlink GRE packet sent bythe aggregation gateway by using the first tunnel and/or the secondtunnel, and decapsulating the downlink GRE packet to obtain a downlinkdata packet and a downlink serial number corresponding to the downlinkdata packet; determining, by the home gateway, whether the downlinkserial number is equal to a serial number supposed to be sent at thecurrent moment, where the serial number supposed to be sent at thecurrent moment is a serial number of the last downlink data packet thathas already been sent by the home gateway at the current moment plus aconstant value, and the constant value is a natural number; if thedownlink serial number is equal to the serial number supposed to be sentat the current moment, sending, by the home gateway, the downlink datapacket corresponding to the downlink serial number; and if the downlinkserial number is not equal to the serial number supposed to be sent atthe current moment, caching, by the home gateway, the downlink datapacket corresponding to the downlink serial number.

With reference to the fourth possible implementation manner of thesecond aspect, in a sixth possible implementation manner of the secondaspect, where before the sending, by the home gateway, the uplink datapacket to the aggregation gateway by using the first tunnel and/or thesecond tunnel, the method further includes: determining, by the homegateway, to send the uplink data packet to the aggregation gateway byusing the first tunnel and/or the second tunnel according to a routingpolicy.

With reference to the second aspect and the first to sixth possibleimplementation manners of the second aspect, in a seventh possibleimplementation manner of the second aspect, after the establishing, bythe home gateway, a second tunnel from the home gateway to theaggregation gateway according to the second address, the method furtherincludes: sending, by the home gateway, bandwidth information of thefirst tunnel and bandwidth information of the second tunnel to theaggregation gateway, so as to enable the aggregation gateway todetermine the available bandwidth of the first tunnel and availablebandwidth of the second tunnel.

According to a third aspect, an embodiment of the present applicationprovides an aggregation gateway, including: a first tunnel establishingmodule configured to receive a first tunnel establishment requestmessage sent by a home gateway, where the first tunnel establishmentrequest message is used to request for establishing a first tunnel, andsend a first tunnel establishment success message to the home gateway,and the first tunnel establishment request message includes anidentifier of the home gateway and a first address, and a first sourceaddress of the first tunnel is the first address, a destination addressof the first tunnel is an address of the aggregation gateway, and thefirst address is an address of the home gateway on a first accessnetwork, where the address is obtained by the home gateway; a secondtunnel establishing module configured to receive a second tunnelestablishment request message sent by the home gateway, where the secondtunnel establishment request message is used to request for establishinga second tunnel, and send a second tunnel establishment success messageto the home gateway, and the second tunnel establishment request messageincludes the identifier of the home gateway and a second address, and asecond source address of the second tunnel is the second address; adestination address of the second tunnel is the address of theaggregation gateway, and the second address is an address of the homegateway on a second access network, where the address is obtained by thehome gateway; an associating module configured to associate the firsttunnel with the second tunnel according to the identifier of the homegateway; and a sending module configured to send a downlink data packetto the home gateway by using the first tunnel and/or the second tunnel.

With reference to the third aspect, in a first possible implementationmanner of the third aspect, the sending module is specificallyconfigured to: perform Generic Routing Encapsulation GRE for thedownlink data packet to obtain a downlink GRE packet, where the downlinkGRE packet includes a downlink serial number, and the downlink serialnumber is used to indicate a sequence in which the aggregation gatewaysends the downlink GRE packet; and send the downlink GRE packet to thehome gateway by using the first tunnel and/or the second tunnel.

With reference to the first possible implementation manner of the thirdaspect, in a second possible implementation manner of the third aspect,the method further includes: a selecting module, where before thesending module sends the downlink data packet to the home gateway byusing the first tunnel and/or the second tunnel, the selecting module isconfigured to determine whether available bandwidth of the first tunnelis less than bandwidth required for transmitting the downlink datapacket; and to select to trigger the sending module to send the downlinkdata packet to the home gateway by using the first tunnel when it isdetermined that the available bandwidth of the first tunnel is not lessthan the bandwidth required for transmitting the downlink data packet,and to select to trigger the sending module to send the downlink datapacket to the home gateway by using the second tunnel when it isdetermined that the available bandwidth of the first tunnel is less thanthe bandwidth required for transmitting the downlink data packet.

With reference to the third aspect and any one of the first and secondpossible implementation manners of the third aspect, in a third possibleimplementation manner of the third aspect, the aggregation gatewayfurther includes: a decapsulating module configured to receive an uplinkGRE packet sent by the home gateway by using the first tunnel and/or thesecond tunnel, and decapsulate the uplink GRE packet to obtain an uplinkdata packet and a serial number corresponding to the uplink data packet;and a forwarding module configured to determine whether the uplinkserial number is equal to a serial number supposed to be sent at thecurrent moment, where the serial number supposed to be sent at thecurrent moment is a serial number of the last uplink data packet thathas already been sent by the aggregation gateway at the current momentplus a constant value, where the constant value is a natural number; ifthe uplink serial number is equal to the serial number supposed to besent at the current moment, send the uplink data packet corresponding tothe uplink serial number; and if the uplink serial number is not equalto the serial number supposed to be sent at the current moment, cachethe uplink data packet corresponding to the uplink serial number.

With reference to the third aspect and any one of the first to thirdpossible implementation manners of the third aspect, in a fourthpossible implementation manner of the third aspect, the aggregationgateway further includes: a bandwidth determining module configured to,before the sending module sends the downlink data packet to the homegateway by using the first tunnel and/or the second tunnel, receivebandwidth information of the first tunnel and bandwidth information ofthe second tunnel, where the bandwidth information is sent by the homegateway, and determine the available bandwidth of the first tunnel andavailable bandwidth of the second tunnel according to the bandwidthinformation.

According to a fourth aspect, an embodiment of the present applicationprovides a home gateway, including: a first obtaining module configuredto obtain a first address of the home gateway on a first access network;a first tunnel establishing module, configure to establish a firsttunnel from the home gateway to an aggregation gateway according to thefirst address, where a source address of the first tunnel is the firstaddress, and a destination address of the first tunnel is an address ofthe aggregation gateway; a second obtaining module configured to obtaina second address of the home gateway on a second access network; asecond tunnel establishing module configured to establish a secondtunnel from the home gateway to the aggregation gateway according to thesecond address, where a source address of the second tunnel is thesecond address, and a destination address of the second tunnel is theaddress of the aggregation gateway; and a processing module configuredto receive an uplink data packet sent by a user equipment and send theuplink data packet to the aggregation gateway by using the first tunneland/or the second tunnel.

With reference to the fourth aspect, in a first possible implementationmanner of the fourth aspect, the first tunnel establishing module isspecifically configured to: send a first tunnel establishment requestmessage to the aggregation gateway by using the first access network,where the first tunnel establishment request message is used to requestfor establishing the first tunnel, and the first tunnel establishmentrequest message includes an identifier of the home gateway and the firstaddress; and receive a first tunnel establishment success message sentby the aggregation gateway; the second tunnel establishing module isspecifically configured to: send a second tunnel establishment requestmessage to the aggregation gateway by using the second access network,where the second tunnel establishment request message is used to requestfor establishing the second tunnel, and the second tunnel establishmentrequest message includes the identifier of the home gateway and thesecond address; and receive a second tunnel establishment successmessage sent by the aggregation gateway.

With reference to the fourth aspect or the first possible implementationmanner of the fourth aspect, in a second possible implementation mannerof the fourth aspect, the first obtaining module is specificallyconfigured to: send an IP address request message to a first gatewaycorresponding to the first access network; and receive an IP addressresponse message sent by the first gateway, where the IP addressresponse message includes the first address of the home gateway on thefirst access network, and the first address is a first IP address; thesecond obtaining module is specifically configured to: send an IPaddress request message to a second gateway corresponding to the secondaccess network; and receive an IP address response message sent by thesecond gateway, where the IP address response message includes thesecond address of the home gateway on the second access network, and thesecond address is a second IP address.

With reference to the fourth aspect and any one of the first and secondpossible implementation manners of the fourth aspect, in a thirdpossible implementation manner of the fourth aspect, the processingmodule is specifically configured to: receive an uplink data packet sentby a user equipment, and perform Generic Route Encapsulation GRE for theuplink data packet to obtain an uplink GRE packet, where the uplink GREpacket includes an uplink serial number, and the uplink serial number isused to indicate a sequence in which the home gateway sends the uplinkGRE packet; and send the uplink GRE packet to the aggregation gateway byusing the first tunnel and/or the second tunnel.

With reference to the third possible implementation manner of the fourthaspect, in a fourth possible implementation manner of the fourth aspect,the home gateway further includes: a selecting module configured to,before the processing module sends the uplink data packet to theaggregation gateway by using the first tunnel and/or the second tunnel,determine whether available bandwidth of the first tunnel is less thanbandwidth required for transmitting the uplink data packet; to triggerthe processing module to select to send the uplink data packet to theaggregation gateway by using the first tunnel when it is determined thatthe available bandwidth of the first tunnel is not less than bandwidthrequired for transmitting the uplink data packet, and to trigger theprocessing module to select to send the uplink data packet by using thesecond tunnel when it is determined that the available bandwidth of thefirst tunnel is less than the bandwidth required for transmitting theuplink data packet.

With reference to the fourth aspect and any one of the first to fourthpossible implementation manners of the fourth aspect, in a fifthpossible implementation manner of the fourth aspect, the home gatewayfurther includes: a decapsulating module configured to receive adownlink GRE packet sent by the aggregation gateway by using the firsttunnel and/or the second tunnel, and decapsulate the downlink GRE packetto obtain a downlink data packet and a downlink serial numbercorresponding to the downlink data packet; and a forwarding moduleconfigured to determine whether the downlink serial number is equal to aserial number supposed to be sent at the current moment, where theserial number supposed to be sent at the current moment is a serialnumber of the last downlink data packet that has already been sent bythe home gateway at the current moment plus a constant value, and theconstant value is a natural number; if the downlink serial number isequal to the serial number supposed to be sent at the current moment,send the downlink data packet corresponding to the downlink serialnumber; and if the downlink serial number is not equal to the serialnumber supposed to be sent at the current moment, cache the downlinkdata packet corresponding to the downlink serial number.

With reference to the fourth possible implementation manner of thefourth aspect, in a sixth possible implementation manner of the fourthaspect, the home gateway further includes: a tunnel determining moduleconfigured to determine, before the processing module sends the uplinkdata packet to the aggregation gateway by using the first tunnel and/orthe second tunnel, to send the uplink data packet to the aggregationgateway by using the first tunnel and/or the second tunnel according toa routing policy.

With reference to the fourth aspect and any one of the first to sixthpossible implementation manners of the fourth aspect, in a seventhpossible implementation manner of the fourth aspect, the home gatewayfurther includes: an information sending module configured to send,after the second tunnel establishing module establishes the secondtunnel from the home gateway to the aggregation gateway according to thesecond address, bandwidth information of the first tunnel and bandwidthinformation of the second tunnel to the aggregation gateway, so as toenable the aggregation gateway to determine the available bandwidth ofthe first tunnel and available bandwidth of the second tunnel.

In a packet processing method and a device according to the embodimentsof the present application, an aggregation gateway receives a firsttunnel establishment request message sent by a home gateway, and sends afirst tunnel establishment success message to the home gateway; theaggregation gateway receives a second tunnel establishment requestmessage sent by the home gateway, and sends a second tunnelestablishment success message to the home gateway; the aggregationgateway associates a first tunnel with a second tunnel according to anidentifier of the home gateway, and sends a downlink data packet to thehome gateway by using the first tunnel and/or the second tunnel, so asto enable maximum available bandwidth to be a sum of preset bandwidth ofthe first tunnel and preset bandwidth of the second tunnel when theaggregation gateway sends the downlink data packet to the home gateway,thereby increasing transmission bandwidth.

BRIEF DESCRIPTION OF DRAWINGS

To describe the technical solutions in the embodiments of the presentapplication more clearly, the following briefly introduces theaccompanying drawings for describing the embodiments. The accompanyingdrawings in the following description show merely some embodiments ofthe present application, and a person of ordinary skill in the art maystill derive other drawings from these accompanying drawings withoutcreative efforts.

FIG. 1 is a schematic flowchart of a first embodiment of a packetprocessing method according to the present application;

FIG. 2 is a schematic diagram of an application scenario of a packetprocessing method according to the present application;

FIG. 3 is a schematic flowchart of a second embodiment of a packetprocessing method according to the present application;

FIG. 4 is a first signaling flowchart of a third embodiment of a packetprocessing method according to the present application;

FIG. 5 is a second signaling flowchart of a third embodiment of a packetprocessing method according to the present application;

FIG. 6 is a third signaling flowchart of a third embodiment of a packetprocessing method according to the present application;

FIG. 7 is a schematic structural diagram of a first embodiment of anaggregation gateway according to the present application;

FIG. 8 is a schematic structural diagram of a second embodiment of anaggregation gateway according to the present application;

FIG. 9 is a schematic structural diagram of a first embodiment of a homegateway according to the present application;

FIG. 10 is a schematic structural diagram of a second embodiment of ahome gateway according to the present application;

FIG. 11 is a schematic structural diagram of a third embodiment of anaggregation gateway according to the present application; and

FIG. 12 is a schematic structural diagram of a third embodiment of ahome gateway according to the present application.

DESCRIPTION OF EMBODIMENTS

The following clearly describes the technical solutions in theembodiments of the present application with reference to theaccompanying drawings in the embodiments of the present application.Apparently, the described embodiments are merely a part rather than allof the embodiments of the present application. All other embodimentsobtained by a person of ordinary skill in the art based on theembodiments of the present application without creative efforts shallfall within the protection scope of the present application.

FIG. 1 is a schematic flowchart of a first embodiment of a packetprocessing method according to the present application. As shown in FIG.1, the packet processing method according to this embodiment of thepresent application may be performed by an aggregation gateway. Theaggregation gateway may be implemented by using software and/orhardware. The packet processing method according to this embodimentincludes the following steps:

Step 101. The aggregation gateway receives a first tunnel establishmentrequest message sent by a home gateway and sends a first tunnelestablishment success message to the home gateway.

The first tunnel establishment request message is used to request forestablishing a first tunnel, and the first tunnel establishment requestmessage includes an identifier of the home gateway and a first address.A first source address of the first tunnel is the first address; adestination address of the first tunnel is an address of the aggregationgateway, and the first address is an address of the home gateway on afirst access network, where the address is obtained by the home gateway.

Step 102. The aggregation gateway receives a second tunnel establishmentrequest message sent by the home gateway and sends a second tunnelestablishment success message to the home gateway.

The second tunnel establishment request message is used to request forestablishing a second tunnel; the second tunnel establishment requestmessage includes the identifier of the home gateway and a secondaddress. A second source address of the second tunnel is the secondaddress; a destination address of the second tunnel is the address ofthe aggregation gateway, and the second address is an address of thehome gateway on a second access network, where the address is obtainedby the home gateway.

Step 103. The aggregation gateway associates the first tunnel with thesecond tunnel according to the identifier of the home gateway and sendsa downlink data packet to the home gateway by using the first tunneland/or the second tunnel.

In a specific implementation process, this embodiment of the presentapplication may be applicable to an application scenario shown in FIG.2. FIG. 2 is a schematic diagram of an application scenario of thepacket processing method according to the present application. In FIG.2, a mobile phone accesses using a voice over IP (VoIP) technology, atelevision accesses using an Internet Protocol television (IPTV)technology, or another user equipment accesses using another approach,the home gateway. At least two tunnels are established between the homegateway and the aggregation gateway, and transmission of a data packetbetween the home gateway and the aggregation gateway is implemented byusing the at least two tunnels. Optionally, the tunnel in thisembodiment may be a Generic Routing Encapsulation (GRE) tunnel.

For ease of description, in this embodiment, two tunnels are used as anexample to describe in detail, where the first tunnel is correspondingto the first access network, and the second tunnel is corresponding tothe second access network. The first access network and the secondaccess network may be a same type of access networks, or may bedifferent types of access networks. For example, if the first accessnetwork and the second access network are different types of accessnetworks, the first access network is a mobile bearer network, and thesecond access network is a fixed network. A first gateway correspondingto the first access network is a mobile gateway, and a second gatewaycorresponding to the second access network is a fixed gateway.

During transmission of an uplink data packet, the home gateway sends theuplink data packet to the aggregation gateway by using the first tunneland/or the second tunnel, and the aggregation gateway forwards theuplink data packet to the Internet. During transmission of a downlinkdata packet, the aggregation gateway sends the downlink data packet tothe home gateway by using the first tunnel and/or the second tunnel, andthe home gateway forwards the downlink data packet to a home device on ahome area network.

It may be understood by a person skilled in the art that a practicalapplication scenario is much more complex than the application scenarioshown in FIG. 2. In a specific application process, a relationshipbetween the home gateway and the aggregation gateway is a many-to-onerelationship. That is, a plurality of home gateways are corresponding toone aggregation gateway, where the plurality of home gateways senduplink data packets to the one aggregation gateway, and the oneaggregation gateway forwards the uplink data packets sent by theplurality of home gateways to the Internet.

In a specific implementation process, two tunnels need to be establishedbetween the aggregation gateway and the home gateway. In addition, theaggregation gateway needs to establish an association relationshipbetween the two tunnels and the home gateway to identify a home gatewaycorresponding to each tunnel. The following gives a detailed descriptionof an implementation process of this embodiment.

In step 101, the aggregation gateway receives the first tunnelestablishment request message sent by the home gateway, where the firsttunnel establishment request message is used to request for establishingthe first tunnel, and the first tunnel establishment request messageincludes the identifier of the home gateway and the first address.

When the aggregation gateway determines that a tunnel may be establishedbetween the home gateway and the aggregation gateway, the aggregationgateway sends the first tunnel establishment success message to the homegateway. The first tunnel between the aggregation gateway and the homegateway is established at this time.

Specially, the first source address of the first tunnel is the firstaddress, and the first address is the address of the home gateway on thefirst access network, where the address is obtained by the home gateway;the destination address of the first tunnel is the address of theaggregation gateway. The identifier of the home gateway may be any ofsource information of the home gateway, where the source informationincludes, but is not limited to, an IP address, a MAC address, and auser name of the home gateway.

In step 102, the aggregation gateway receives the second tunnelestablishment request message sent by the home gateway and sends thesecond tunnel establishment success message to the home gateway.

The second tunnel establishment request message is used to request forestablishing the second tunnel, and the second tunnel establishmentrequest message includes the identifier of the home gateway and thesecond address. The second source address of the second tunnel is thesecond address; the destination address of the second tunnel is theaddress of the aggregation gateway, and the second address is theaddress of the home gateway on the second access network, where theaddress is obtained by the home gateway.

For a specific implementation process of establishing the second tunnelin step 102, refer to the specific implementation process ofestablishing the first tunnel in step 101. Details are not described inthis embodiment again. It may be understood by a person skilled in theart that there is no strict time sequence between step 101 and step 102.

In step 103, the aggregation gateway associates the first tunnel withthe second tunnel according to the identifier of the home gateway, andsends the downlink data packet to the home gateway by using the firsttunnel and/or the second tunnel.

After the first tunnel and the second tunnel are established, theaggregation gateway associates the identifier of the home gateway withthe first tunnel and the second tunnel. In a specific implementationprocess, the aggregation gateway may save, on a local computer, anassociation relationship between the two tunnels and the identifier ofthe home gateway by means of table or mapping.

When the aggregation gateway sends the downlink data packet to the homegateway, the aggregation gateway determines the two tunnelscorresponding to the home gateway according to the associationrelationship between the identifier of the home gateway and the twotunnels, and sends the downlink data packet to the home gateway by usingthe first tunnel and/or the second tunnel.

In a specific implementation process, before step 103, the aggregationgateway receives the downlink data packet sent by the Internet, anddetermines whether available bandwidth of the first tunnel is less thanbandwidth required for transmitting the downlink data packet;

The aggregation gateway selects to send the downlink data packet to thehome gateway by using the second tunnel when it is determined that theavailable bandwidth of the first tunnel is less than the bandwidthrequired for transmitting the downlink data packet, where availablebandwidth of the second tunnel is not less than the bandwidth requiredfor transmitting the downlink data packet.

Specifically, the first tunnel may be an active tunnel for transmittingthe downlink data packet, and the second tunnel may be a standby tunnelfor transmitting the downlink data packet. The available bandwidth ofthe first tunnel is currently remaining bandwidth of the first tunnel.When the first tunnel does not transmit other downlink data packets, theavailable bandwidth of the first tunnel is preset bandwidth of the firsttunnel; when the first tunnel transmits the other downlink data packets,the available bandwidth of the first tunnel is a difference between thepreset bandwidth of the first tunnel and bandwidth occupied by the otherdownlink data packets.

The aggregation gateway selects to send the downlink data packet to thehome gateway by using the first tunnel when the available bandwidth ofthe first tunnel is not less than the bandwidth required fortransmitting the downlink data packet; the aggregation gateway selectsto send the downlink data packet to the home gateway by using the secondtunnel when the available bandwidth of the first tunnel is less than thebandwidth required for transmitting the downlink data packet. Forexample, the aggregation gateway may select to send the downlink datapacket to the home gateway by using the first tunnel when the availablebandwidth of the first tunnel is equal to the bandwidth required fortransmitting the downlink data packet. Optionally, the aggregationgateway may also select to send the downlink data packet to the homegateway by using the second tunnel, where available bandwidth of thesecond tunnel is not less than the bandwidth required for transmittingthe downlink data packet.

In step 103, the aggregation gateway sends the downlink data packet tothe home gateway by using the first tunnel and/or the second tunnel.That is, there are two tunnels between the aggregation gateway and thehome gateway and the two tunnels may be used for transmitting thedownlink data packet. The aggregation gateway selects the first tunneland/or the second tunnel according to the bandwidth required fortransmitting the downlink data packet. It may be understood by a personskilled in the art that, when the aggregation gateway sends the downlinkdata packet to the home gateway, the maximum available bandwidth is asum of the preset bandwidth of the first tunnel and preset bandwidth ofthe second tunnel, whereas the preset bandwidth of the first tunnel isequal to the preset bandwidth of the second tunnel, and both of the twopreset bandwidth are bandwidth of a physical line.

In a packet processing method according to this embodiment of thepresent application, an aggregation gateway receives a first tunnelestablishment request message sent by a home gateway, and sends a firsttunnel establishment success message to the home gateway; theaggregation gateway receives a second tunnel establishment requestmessage sent by the home gateway, and sends a second tunnelestablishment success message to the home gateway; the aggregationgateway associates a first tunnel with a second tunnel according to anidentifier of the home gateway, and sends a downlink data packet to thehome gateway by using the first tunnel and/or the second tunnel, so asto enable maximum available bandwidth to be a sum of preset bandwidth ofthe first tunnel and preset bandwidth of the second tunnel when theaggregation gateway sends the downlink data packet, thereby increasingtransmission bandwidth.

FIG. 3 is a schematic flowchart of a second embodiment of a packetprocessing method according to the present application. As shown in FIG.3, the packet processing method according to this embodiment of thepresent application may be performed by a home gateway. The home gatewaymay be implemented by using software and/or hardware. The packetprocessing method according to this embodiment includes the followingsteps:

Step 301. The home gateway obtains a first address of the home gatewayon a first access network and establishes a first tunnel from the homegateway to an aggregation gateway according to the first address.

A source address of the first tunnel is the first address, and adestination address of the first tunnel is an address of the aggregationgateway.

Step 302. The home gateway obtains a second address of the home gatewayon a second access network and establishes a second tunnel from the homegateway to the aggregation gateway according to the second address.

A source address of the second tunnel is the second address, and adestination address of the second tunnel is the address of theaggregation gateway.

Step 303. The home gateway receives an uplink data packet sent by a userequipment and sends the uplink data packet to the aggregation gateway byusing the first tunnel and/or the second tunnel.

An application scenario of this embodiment may be that shown in FIG. 2.For specific descriptions, refer to the foregoing embodiment. Detailsare not described herein again.

This embodiment gives a detailed description of a specificimplementation process of establishing the first tunnel and the secondtunnel by the home gateway.

In step 301, the home gateway establishes the first tunnel, and the homegateway firstly obtains the first address of the home gateway on thefirst access network. In a specific implementation process, the firstaddress may be an IP address, a medium access control (MAC) address, andthe like. This embodiment sets no special limitations on the firstaddress.

Optionally, the first address may be an IP address. When the firstaddress is the IP address, the home gateway may obtain the first addressin two possible implementation manners. One possible implementationmanner is: the home gateway statically configures the IP address. Theother possible implementation manner is: the home gateway sends an IPaddress application message to a first gateway corresponding to thefirst access network; the home gateway receives an IP address responsemessage sent by the first gateway, where the IP address response messageincludes the first address of the home gateway on the first accessnetwork, and the first address is a first IP address.

Then the home gateway establishes the first tunnel from the home gatewayto the aggregation gateway according to the first address. Specifically,the home gateway sends a first tunnel establishment request message tothe aggregation gateway by using the first access network and receives afirst tunnel establishment success message sent by the aggregationgateway.

Specifically, the source address of the first tunnel is the firstaddress, and the destination address of the first tunnel is the addressof the aggregation gateway. The home gateway uses the first address as asource address and sends the first tunnel establishment request messagethat includes the identifier of the home gateway to the aggregationgateway. When the home gateway receives the first tunnel establishmentsuccess message, it indicates that the first tunnel is successfullyestablished. The identifier of the home gateway may be any of sourceinformation of the home gateway, where the source information includes,but is not limited to, an IP address, an MAC address, and a user name ofthe home gateway.

In step 302, the home gateway establishes the second tunnel. The homegateway obtains the second address of the home gateway on the secondaccess network and establishes the second tunnel from the home gatewayto the aggregation gateway according to the second address.

Specifically, the home gateway sends the second tunnel establishmentrequest message to the aggregation gateway by using the second accessnetwork, and the home gateway receives the second tunnel establishmentsuccess message sent by the aggregation gateway, where the second tunnelestablishment request message includes the identifier of the homegateway, the source address of the second tunnel is the second address,and the destination address of the second tunnel is the address of theaggregation gateway.

An implementation manner of the second tunnel is similar to that of thefirst tunnel. Details are not described herein again.

In this step, for a specific implementation process of establishing thesecond tunnel by the home gateway, refer to step 301. Details are notdescribed herein again.

It may be understood by a person skilled in the art that there is nostrict time sequence between step 301 and step 302 in a specificapplication process.

In step 303, the home gateway receives the uplink data packet send bythe user equipment that is on a home area network, and the home gatewaysends the uplink data packet to the aggregation gateway by using thefirst tunnel and/or the second tunnel.

In a specific implementation process, before step 303, the home gatewaydetermines whether available bandwidth of the first tunnel is less thanbandwidth required for transmitting the uplink data packet.

The home gateway selects to send the uplink data packet to theaggregation gateway by using the first tunnel when it is determined thatthe available bandwidth of the first tunnel is not less than thebandwidth required for transmitting the uplink data packet.

The home gateway selects to send the uplink data packet to theaggregation gateway by using the second tunnel when it is determinedthat the available bandwidth of the first tunnel is less than thebandwidth required for transmitting the uplink data packet.

Specifically, the first tunnel may be an active tunnel for transmittingthe uplink data packet, and the second tunnel may be a standby tunnelfor transmitting the uplink data packet. The available bandwidth of thefirst tunnel is currently remaining bandwidth of the first tunnel. Whenthe first tunnel does not transmit other uplink data packets, theavailable bandwidth of the first tunnel is preset bandwidth of the firsttunnel. When the first tunnel transmits the other uplink data packets,the available bandwidth of the first tunnel is a difference between thepreset bandwidth of the first tunnel and bandwidth occupied by the otheruplink data packets.

The aggregation gateway selects to send the uplink data packet to thehome gateway by using the first tunnel when the available bandwidth ofthe first tunnel is not less than the bandwidth required fortransmitting the uplink data packet; the aggregation gateway selects tosend the uplink data packet to the home gateway by using the secondtunnel when the available bandwidth of the first tunnel is less than thebandwidth required for transmitting the uplink data packet.

It may be understood by a person skilled in the art that, when the homegateway sends the uplink data packet to the aggregation gateway, maximumavailable bandwidth is a sum of the preset bandwidth of the first tunneland preset bandwidth of the second tunnel, whereas the preset bandwidthof the first tunnel is equal to the preset bandwidth of the secondtunnel, and both of the two preset bandwidth are bandwidth of a physicalline.

In a packet processing method according to this embodiment of thepresent application, a home gateway obtains a first address of the homegateway on a first access network and establishes a first tunnel fromthe home gateway to an aggregation gateway according to the firstaddress; the home gateway obtains a second address of the home gatewayon a second access network and establishes a second tunnel from the homegateway to the aggregation gateway according to the second address; thehome gateway receives a uplink data packet sent by a user equipment andsends the uplink data packet to the aggregation gateway by using thefirst tunnel and/or the second tunnel, so as to enable maximum bandwidthto be a sum of preset bandwidth of the first tunnel and preset bandwidthof the second tunnel when the home gateway sends the uplink data packetto the aggregation gateway, thereby increasing transmission bandwidth.

FIG. 4 is a first signaling flowchart of a third embodiment of a packetprocessing method according to the present application. Based on theembodiments shown in FIG. 1 to FIG. 3, this embodiment gives a detaileddescription of tunnel establishment and association. A specific processis as follows:

Step 401. A home gateway sends an IP address request message to a firstgateway.

Step 402. The first gateway sends an IP address response message to thehome gateway.

The IP address response message includes a first address of the homegateway on a first access network, and the first address is a first IPaddress.

Step 403. The home gateway sends an IP address request message to asecond gateway.

Step 404. The second gateway sends an IP address response message to thehome gateway.

The home gateway receives the IP address response message sent by thesecond gateway, where the IP address response message includes a secondaddress of the home gateway on a second access network, and the secondaddress is a second IP address.

It may be understood by a person skilled in the art that there is nostrict time sequence between step 401 and step 403, or between step 402and step 404.

Step 405. The home gateway sends a first tunnel establishment requestmessage to an aggregation gateway.

The first tunnel establishment request message includes an identifier ofthe home gateway and the first address.

Step 406. The aggregation gateway sends a first tunnel establishmentsuccess message to the home gateway.

A source address of the first tunnel is the first address, and adestination address of the first tunnel is an address of the aggregationgateway.

Step 407. The home gateway sends a second tunnel establishment requestmessage to the aggregation gateway.

The second tunnel establishment request message includes the identifierof the home gateway and the second address.

Step 408. The aggregation gateway sends a second tunnel establishmentsuccess message to the home gateway.

A source address of the second tunnel is the second address, and adestination address of the second tunnel is the address of theaggregation gateway.

It may be understood by a person skilled in the art that there is nostrict time sequence between step 405 and step 407, or that there is nostrict time sequence between step 406 and step 408.

Step 409. The aggregation gateway associates the first tunnel with thesecond tunnel according to the identifier of the home gateway.

The aggregation gateway uniformly uses the associated first tunnel andsecond tunnel as data load channels.

The tunnel established according to this embodiment enables datatransmission between the aggregation gateway and the home gateway to beimplemented by using tunnels, but not simply by a physical line, therebyavoiding a limitation on bandwidth by a physical line.

FIG. 5 is a second signaling flowchart of a third embodiment of a packetprocessing method according to the present application. Based on theembodiments shown in FIG. 1 to FIG. 4, this embodiment gives a detaileddescription of the process of sending the uplink data packet by the homegateway to the aggregation gateway. A specific process is as follows:

Step 501. The home gateway receives the uplink data packet sent by auser equipment and determines whether available bandwidth of the firsttunnel is less than bandwidth required for transmitting the uplink datapacket. The home gateway selects to send the uplink data packet to theaggregation gateway by using the first tunnel when it is determined thatthe available bandwidth of the first tunnel is not less than thebandwidth required for transmitting the uplink data packet, and selectsto send the uplink data packet to the aggregation gateway by using thesecond tunnel when it is determined that the available bandwidth of thefirst tunnel is less than the bandwidth required for transmitting theuplink data packet.

In a specific implementation process, the home gateway, after receivingthe uplink data packet sent by the user equipment, determines whether tosend the uplink data packet to the aggregation gateway by using thefirst tunnel and/or the second tunnel according to a routing policy. Therouting policy may be: when bandwidth of a physical line cannot meet thebandwidth required for transmitting the uplink data packet, or a networkcondition of the physical line is poor, the home gateway determines toselect to send the uplink data packet to the aggregation gateway byusing the first tunnel and/or the second tunnel; when the bandwidth ofthe physical line may meet the bandwidth required for transmitting theuplink data packet, or a network condition of the first tunnel and/orthe second tunnel is poor, the home gateway may select to send theuplink data packet on the physical line. This embodiment sets no speciallimitations on a specific implementation manner of the routing policy.

When the home gateway determines to send the uplink data packet to theaggregation gateway by using the first tunnel and/or the second tunnel,the home gateway determines whether the available bandwidth of the firsttunnel is less than the bandwidth required for transmitting the uplinkdata packet. The home gateway selects to send the uplink data packet tothe aggregation gateway by using the first tunnel when it is determinedthat the available bandwidth of the first tunnel is not less than thebandwidth required for transmitting the uplink data packet, and selectsto send the uplink data packet to the aggregation gateway by using thesecond tunnel when it is determined that the available bandwidth of thefirst tunnel is less than the bandwidth required for transmitting theuplink data packet.

Step 502. The home gateway performs Generic Routing Encapsulation forthe uplink data packet to obtain an uplink GRE packet.

When the home gateway selects to send the uplink data packet to theaggregation gateway by using the first tunnel and/or the second tunnel,the home gateway performs Generic Routing Encapsulation for the uplinkdata packet to obtain the uplink GRE packet. Specifically, an uplinkdata packet that needs to be encapsulated and transmitted by the homegateway is referred to as payload, and a protocol type of the payload ispassenger protocol. After receiving a payload, the home gateway firstperforms GRE encapsulation for the payload by using an encapsulationprotocol. That is, the home gateway “packs” a passenger protocol packetand adds a GRE header to form the GRE packet; and then encapsulates theoriginal packet that has already been encapsulated and the GRE headerinto a packet of another protocol. For example, the another protocol isan IP protocol. Then, the aggregation gateway encapsulates the originalpacket that has already been encapsulated and the GRE header into apacket of the IP protocol, so that an IP layer can fully take charge offorwarding of the packet.

Specially, an uplink serial number is encapsulated to the GRE header,where the uplink serial number is used to indicate a sequence in whichthe home gateway sends the uplink GRE packet. For example, when the homegateway continuously sends three uplink data packets to the aggregationgateway by using the first tunnel, the uplink serial numberscorresponding to the three uplink data packets are 1, 2, and 3respectively; when the home gateway sends two uplink data packets to theaggregation gateway by using the second tunnel, the uplink serialnumbers of the two uplink data packets are 4 and 5 respectively.

Step 503. The home gateway sends the uplink GRE packet to theaggregation gateway by using the first tunnel and/or the second tunnel.

Step 504. The aggregation gateway decapsulates the GRE uplink datapacket to obtain the uplink data packet and an uplink serial numbercorresponding to the uplink data packet.

Correspondingly, after receiving the uplink GRE packet, the aggregationgateway decapsulates the uplink GRE packet to obtain the uplink datapacket and the uplink serial number that is in the GRE packet header andcorresponds to the uplink data packet.

Step 505. The aggregation gateway determines whether the uplink serialnumber is equal to a serial number supposed to be sent at the currentmoment. If the uplink serial number is equal to the serial numbersupposed to be sent at the current moment, the aggregation gateway sendsthe uplink data packet corresponding to the uplink serial number; if theuplink serial number is not equal to the serial number supposed to besent at the current moment, the aggregation gateway caches the uplinkdata packet corresponding to the uplink serial number.

In a specific implementation process, because the aggregation gatewaymay receive the uplink data packet sent by the home gateway by using thefirst tunnel and/or the second tunnel, when the first tunnel and thesecond tunnel correspond to different access networks and when the firsttunnel and the second tunnel carry the uplink data packet, a delaydifference between the first tunnel and the second tunnel exists. Forexample, a first access network corresponding to the first tunnel is anLTE bearer network, and a second access network corresponding to thesecond tunnel is a DSL bearer network. A phenomenon of out-of-order mayoccur when the aggregation gateway receives the uplink data packettransmitted by using the first tunnel and/or the second tunnel becauseof the delay difference between the LTE and the DSL. Therefore, theaggregation gateway and the home gateway may separately maintain theuplink serial number based on the uplink data packet.

For the manner in which the home gateway maintains the uplink serialnumber, refer to step 502. The maintenance of the uplink serial numberby the aggregation gateway is as follows: the aggregation gatewaydetermines whether the uplink serial number is equal to the serialnumber supposed to be sent at the current moment. Specifically, theserial number supposed to be sent at the current moment is a serialnumber of the last uplink data packet that has already been sent by theaggregation gateway at the current moment plus a constant value, and theconstant value is a natural number. For example, when the aggregationgateway receives two consecutive uplink data packets sent by the homegateway by using the first tunnel, uplink serial numbers correspondingto the two uplink data packets are 1 and 2 respectively. At this time,the aggregation gateway has not forwarded the uplink data packets, theserial numbers supposed to be sent by the aggregation gateway at thecurrent moment are 1 and 2, and the constant value is 1. The aggregationgateway determines that the uplink serial numbers are equal to theserial numbers supposed to be sent at the current moment, and theaggregation gateway forwards the uplink data packets corresponding tothe uplink serial numbers 1 and 2 to the Internet.

Then, the aggregation gateway receives an uplink data packet sent by thehome gateway by using the second tunnel, and a corresponding presetserial number is 4; however, at this time, the serial number supposed tobe sent at the current moment is 3. Therefore, the aggregation gatewaydetermines that the uplink serial number is not equal to the serialnumber supposed to be sent at the current moment, and the aggregationgateway caches the uplink data packet corresponding to the uplink serialnumber 4.

Then, the aggregation gateway receives the uplink data packet sent bythe home gateway by using the first tunnel, and a corresponding presetserial number is 3. However, at this time, the serial number supposed tobe sent at the current moment is 4. Therefore, the aggregation gatewaydetermines that the uplink serial number is not equal to the serialnumber supposed to be sent at the current moment, and the aggregationgateway caches the uplink data packet corresponding to the uplink serialnumber 3. The aggregation gateway detects, within a preset time, whetherthe uplink serial numbers in a cache are consecutive. When the uplinkserial numbers in the cache are consecutive, the aggregation gatewayforwards the uplink data packets corresponding to the uplink serialnumbers to the Internet. For example, when detecting that the uplinkserial numbers 3 and 4 in a preset cache are consecutive; theaggregation gateway forwards the uplink packets corresponding to theuplink serial numbers 3 and 4 to the Internet.

According to this embodiment of the present application, a home gatewaysends an uplink data packet to an aggregation gateway, which not onlyincreases bandwidth by using two tunnels, but also ensures that theaggregation gateway forwards the uplink data packet to the Internet in acorrect sequence.

FIG. 6 is a third signaling flowchart of a third embodiment of a packetprocessing method according to the present application. Based on theembodiments shown in FIG. 1 to FIG. 5, this embodiment gives a detaileddescription of a process of sending a downlink data packet by theaggregation gateway to the home gateway. A specific process is asfollows:

Step 601. The aggregation gateway receives the downlink data packet sentby the Internet, and determines whether the available bandwidth of thefirst tunnel is less than the bandwidth required for transmitting thedownlink data packet. The aggregation gateway selects to send thedownlink data packet to the home gateway by using the second tunnel whenit is determined that the available bandwidth of the first tunnel isless than the bandwidth required for transmitting the downlink datapacket, where the available bandwidth of the second tunnel is not lessthan the bandwidth required for transmitting the downlink data packet.

Optionally, before step 601, the home gateway sends bandwidthinformation of the first tunnel and bandwidth information of the secondtunnel to the aggregation gateway; the aggregation gateway receives thebandwidth information of the first tunnel and the bandwidth informationof the second tunnel, where the bandwidth information is sent by thehome gateway; the aggregation gateway determines the available bandwidthof the first tunnel and the available bandwidth of the second tunnelaccording to the bandwidth information. Specifically, the bandwidthinformation includes preset bandwidth of the first tunnel and presetbandwidth of the second tunnel, that is, maximum bandwidth of the firsttunnel and the second tunnel. The aggregation gateway may determinemaximum available bandwidth of the first tunnel and the second tunnelaccording to the bandwidth information. When downlink data has beentransmitted by using the first tunnel and the second tunnel, theaggregation gateway may determine current available bandwidth accordingto the bandwidth information.

Step 602. The aggregation gateway performs Generic Routing Encapsulationfor the downlink data packet to obtain a downlink GRE packet.

In this embodiment, for the implementation manner in which theaggregation gateway performs GRE encapsulation for the downlink datapacket to obtain the downlink GRE data, refer to step 502. Details arenot described herein again.

Step 603. The aggregation gateway sends the downlink GRE packet to thehome gateway by using the first tunnel and/or the second tunnel.

Step 604. The home gateway decapsulates the downlink GRE packet toobtain the downlink data packet and a downlink serial numbercorresponding to the downlink data packet.

Step 605. The home gateway determines whether the downlink serial numberis equal to a serial number supposed to be sent at the current moment.If the downlink serial number is equal to the serial number supposed tobe sent at the current moment, the home gateway sends the downlink datapacket corresponding to the downlink serial number; if the downlinkserial number is not equal to the serial number supposed to be sent atthe current moment, the home gateway caches the downlink data packetcorresponding to the downlink serial number.

In this embodiment, an implementation manner of step 605 is similar tothat of step 505. Details are not described herein again.

According to this embodiment of the present application, an aggregationgateway sends a downlink data packet to a home gateway, which not onlyincreases bandwidth by using two tunnels, but also ensures that the homegateway forwards the downlink data packet to a user equipment in acorrect sequence.

FIG. 7 is a schematic structural diagram of a first embodiment of anaggregation gateway according to the present application. As shown inFIG. 7, an aggregation gateway 70 according to this embodiment of thepresent application includes a first tunnel establishing module 701, asecond tunnel establishing module 702, an associating module 703, and asending module 704.

The first tunnel establishing module 701 is configured to receive afirst tunnel establishment request message sent by a home gateway, wherethe first tunnel establishment request message is used to request forestablishing a first tunnel, and send a first tunnel establishmentsuccess message to the home gateway. The first tunnel establishmentrequest message includes an identifier of the home gateway and a firstaddress; a first source address of the first tunnel is the firstaddress, and a destination address of the first tunnel is an address ofthe aggregation gateway. The first address is an address of the homegateway on a first access network, where the address is obtained by thehome gateway.

The second tunnel establishing module 702 is configured to receive asecond tunnel establishment request message sent by the home gateway,where the second tunnel establishment request message is used to requestfor establishing a second tunnel, and send a second tunnel establishmentsuccess message to the home gateway. The second tunnel establishmentrequest message includes the identifier of the home gateway and a secondaddress; a second source address of the second tunnel is the secondaddress, and a destination address of the second tunnel is the addressof the aggregation gateway. The second address is an address of the homegateway on a second access network, where the address is obtained by thehome gateway.

The associating module 703 is configured to associate the first tunnelwith the second tunnel according to the identifier of the home gateway.

The sending module 704 is configured to send a downlink data packet tothe home gateway by using the first tunnel and/or the second tunnel.

An aggregation gateway in this embodiment may be applicable to thetechnical solutions described in a first embodiment of a packetprocessing method. Implementation principles and technical effects aresimilar. Details are not described herein again.

FIG. 8 is a schematic structural diagram of a second embodiment of anaggregation gateway according to the present application. As shown inFIG. 8, this embodiment is implemented based on the embodiment shown inFIG. 7. A specific implementation manner is as follows:

Optionally, the sending module 704 is specifically configured to:perform Generic Routing Encapsulation GRE for the downlink data packetto obtain a downlink GRE packet, wherein the downlink GRE packetincludes a downlink serial number, and the downlink serial number isused to indicate a sequence in which the aggregation gateway sends thedownlink GRE packet; and send the downlink GRE packet to the homegateway by using the first tunnel and/or the second tunnel.

Optionally, the aggregation gateway further includes a selecting module705. The selecting module is configured to, before the sending modulesends the downlink data packet to the home gateway by using the firsttunnel and/or the second tunnel, determine whether available bandwidthof the first tunnel is less than bandwidth required for transmitting thedownlink data packet; to trigger the sending module that selects to sendthe downlink data packet to the home gateway by using the first tunnelwhen it is determined that the available bandwidth of the first tunnelis not less than the bandwidth required for transmitting the downlinkdata packet; and to trigger the sending module to select to send thedownlink data packet to the home gateway by using the second tunnel whenit is determined that the available bandwidth of the first tunnel isless than the bandwidth required for transmitting the downlink datapacket.

Optionally, the aggregation gateway further includes a decapsulatingmodule 706 configured to receive an uplink GRE packet sent by the homegateway by using the first tunnel and/or the second tunnel, anddecapsulate the uplink GRE packet to obtain an uplink data packet and anuplink serial number corresponding to the uplink data packet; and aforwarding module 707 configured to determine whether the uplink serialnumber is equal to a serial number supposed to be sent at the currentmoment, where the serial number supposed to be sent at the currentmoment is a serial number of the last uplink data packet that hasalready been sent by the aggregation gateway at the current moment plusa constant value, and the constant value is a natural number.

If the uplink serial number is equal to the serial number supposed to besent at the current moment, the forwarding module 707 sends the uplinkdata packet corresponding to the uplink serial number.

If the uplink serial number is not equal to the serial number supposedto be sent at the current moment, the forwarding module 707 caches theuplink data packet corresponding to the uplink serial number.

Optionally, the aggregation gateway further includes a bandwidthdetermining module 708 configured to receive, before sending thedownlink data packet to the home gateway by using the first tunneland/or the second tunnel, bandwidth information of the first tunnel andbandwidth information of the second tunnel, where the bandwidthinformation is sent by the home gateway, and determine the availablebandwidth of the first tunnel and available bandwidth of the secondtunnel according to the bandwidth information.

An aggregation gateway according to this embodiment may be configured toperform the technical solutions described in the foregoing methodembodiments. Implementation principles and technical effects aresimilar. Details are not described herein again.

FIG. 9 is a schematic structural diagram of a first embodiment of a homegateway according to the present application. As shown in FIG. 9, a homegateway 90 according to this embodiment of the present applicationincludes a first obtaining module 901, a first tunnel establishingmodule 902, a second obtaining module 903, a second tunnel establishingmodule 904, and a processing module 905.

The first obtaining module 901 is configured to obtain a first addressof the home gateway on a first access network.

The first tunnel establishing module 902 is configured to establish afirst tunnel from the home gateway to an aggregation gateway accordingto the first address, where a source address of the first tunnel is thefirst address, and a destination address of the first tunnel is anaddress of the aggregation gateway.

The second obtaining module 903 is configured to obtain a second addressof the home gateway on a second access network.

The second tunnel establishing module 904 is configured to establish asecond tunnel from the home gateway to the aggregation gateway accordingto the second address, where a source address of the second tunnel isthe second address, and a destination address of the second tunnel isthe address of the aggregation gateway.

The processing module 905 is configured to receive an uplink data packetsent by a user equipment, and send the uplink data packet to theaggregation gateway by using the first tunnel and/or the second tunnel.

A home gateway of this embodiment may be configured to perform thetechnical solution described in the second embodiment of the method forprocessing a packet. Implementation principles and technical effects aresimilar. Details are not described herein again.

FIG. 10 is a schematic structural diagram of a second embodiment of ahome gateway according to the present application. As shown in FIG. 10,this embodiment is implemented based on the embodiment shown in FIG. 9.A specific implementation manner is as follows:

Optionally, the first tunnel establishing module 902 is specificallyconfigured to: send a first tunnel establishment request message to theaggregation gateway by using the first access network, where the firsttunnel establishment request message is used to request for establishingthe first tunnel, and the first tunnel establishment request messageincludes an identifier of the home gateway and the first address; andreceive a first tunnel establishment success message sent by theaggregation gateway.

The second tunnel establishing module 904 is specifically configured to:send a second tunnel establishment request message to the aggregationgateway by using the second access network, where the second tunnelestablishment request message is used to request for establishing thesecond tunnel, and the second tunnel establishment request messageincludes the identifier of the home gateway and the second address; andreceive a second tunnel establishment success message sent by theaggregation gateway.

Optionally, the first obtaining module 901 is specifically configuredto: send an IP address request message to a first gateway correspondingto the first access network; and receive an IP address response messagesent by the first gateway, where the IP address response messageincludes the first address of the home gateway on the first accessnetwork, and the first address is a first IP address.

The second obtaining module 903 is specifically configured to: send anIP address request message to a second gateway corresponding to thesecond access network; and receive an IP address response message sentby the second gateway, where the IP address response message includesthe second address of the home gateway on the second access network, andthe second address is a second IP address.

Optionally, the processing module is specifically configured to: receivean uplink data packet sent by a user equipment, and perform GenericRoute Encapsulation GRE for the uplink data packet to obtain an uplinkGRE packet, where the uplink GRE packet includes an uplink serialnumber, and the uplink serial number is used to indicate a sequence inwhich the home gateway sends the uplink GRE packet; and send the uplinkGRE packet to the aggregation gateway by using the first tunnel and/orthe second tunnel.

Optionally, the home gateway further includes a selecting module 906configured to, before the processing module sends the uplink data packetto the aggregation gateway by using the first tunnel and/or the secondtunnel, determine whether available bandwidth of the first tunnel isless than bandwidth required for transmitting the uplink data packet; totrigger the processing module to select to send the uplink data packetto the aggregation gateway by using the first tunnel when it isdetermined that the available bandwidth of the first tunnel is not lessthan the bandwidth required for transmitting the uplink data packet; andto trigger the processing module to select to send the uplink datapacket to the aggregation gateway by using the second tunnel when it isdetermined that the available bandwidth of the first tunnel is less thanthe bandwidth required for transmitting the uplink data packet.

Optionally, the home gateway further includes: a decapsulating module907 configured to receive a downlink GRE packet sent by the aggregationgateway by using the first tunnel and/or the second tunnel, anddecapsulate the downlink GRE packet to obtain a downlink data packet anda downlink serial number corresponding to the downlink data packet; anda forwarding module 908 configured to determine whether the downlinkserial number is equal to a serial number supposed to be sent at thecurrent moment, where the serial number supposed to be sent at thecurrent moment is a serial number of the last downlink data packet thathas already been sent by the aggregation gateway at the current momentplus a constant value, and the constant value is a natural number.

If the downlink serial number is equal to the serial number supposed tobe sent at the current moment, the forwarding module 908 sends thedownlink data packet corresponding to the downlink serial number.

If the downlink serial number is not equal to the serial number supposedto be sent at the current moment, the forwarding module 908 caches thedownlink data packet corresponding to the downlink serial number.

Optionally, the home gateway further includes: a tunnel determiningmodule 909 configured to determine, before the processing module 905sends the uplink data packet to the aggregation gateway by using thefirst tunnel and/or the second tunnel, to send the uplink data packet tothe aggregation gateway by using the first tunnel and/or the secondtunnel according to a routing policy.

Optionally, the home gateway further includes: an information sendingmodule 910 configured to send, after the second tunnel establishingmodule 904 establishes the second tunnel from the home gateway to theaggregation gateway according to the second address, bandwidthinformation of the first tunnel and bandwidth information of the secondtunnel to the aggregation gateway, so as to enable the aggregationgateway to determine available bandwidth of the first tunnel andavailable bandwidth of the second tunnel.

A home gateway according to this embodiment may be configured to performthe technical solutions described in the foregoing method embodiments.Implementation principles and technical effects are similar. Details arenot described herein again.

FIG. 11 is a schematic structural diagram of a third embodiment of anaggregation gateway according to the present application. As shown inFIG. 11, an aggregation gateway 110 according to this embodiment of thepresent application includes a receiver 1101, a transmitter 1102, and aprocessor 1103.

The receiver 1101 is configured to receive a first tunnel establishmentrequest message sent by a home gateway, where the first tunnelestablishment request message is used to request for establishing afirst tunnel.

The transmitter 1102 is configured to send a first tunnel establishmentsuccess message to the home gateway. The first tunnel establishmentrequest message includes an identifier of the home gateway and a firstaddress; a source address of the first tunnel is the first address, anda destination address of the first tunnel is an address of theaggregation gateway. The first address is an address of the home gatewayon a first access network, where the address is obtained by the homegateway.

The receiver 1101 is further configured to receive a second tunnelestablishment request message sent by the home gateway, where the secondtunnel establishment request message is used to request for establishinga second tunnel.

The transmitter 1102 is further configured to send a second tunnelestablishment success message to the home gateway. The second tunnelestablishment request message includes the identifier of the homegateway and a second address; a source address of the second tunnel isthe second address, and a destination address of the second tunnel isthe address of the aggregation gateway. The second address is an addressof the home gateway on a second access network, where the address isobtained by the home gateway.

The processor 1103 is configured to associates the first tunnel with thesecond tunnel according to the identifier of the home gateway.

The transmitter 1102 is further configured to send a downlink datapacket to the home gateway by using the first tunnel and/or the secondtunnel.

Optionally, the processor 1103 is further configured to perform GenericRouting Encapsulation GRE for the downlink data packet to obtain adownlink GRE packet, where the downlink GRE packet includes a downlinkserial number, and the downlink serial number is used to indicate asequence in which the aggregation gateway sends the downlink GRE packet.

The transmitter 1102 is further configured to send the downlink GREpacket to the home gateway by using the first tunnel and/or the secondtunnel.

Optionally, the processor 1103 is further configured to, before sendingthe downlink data packet to the home gateway by using the first tunneland/or the second tunnel, determine whether available bandwidth of thefirst tunnel is less than bandwidth required for transmitting thedownlink data packet; and to select to send the downlink data packet tothe home gateway by using the second tunnel when it is determined thatthe available bandwidth of the first tunnel is less than the bandwidthrequired for transmitting the downlink data packet, where availablebandwidth of the second tunnel is not less than the bandwidth requiredfor transmitting the downlink data packet.

Optionally, the processor 1103 is further configured to receive anuplink GRE packet sent by the home gateway by using the first tunneland/or the second tunnel, and decapsulate the uplink GRE packet toobtain an uplink data packet and an uplink serial number correspondingto the uplink data packet.

The processor 1103 is further configured to determine whether the uplinkserial number is equal to a serial number supposed to be sent at thecurrent moment, where the serial number supposed to be sent at thecurrent moment is a serial number of the last uplink data packet thathas already been sent by the aggregation gateway at the current momentplus a constant value, and the constant value is a natural number.

If the uplink serial number is equal to the serial number supposed to besent at the current moment, the processor 1103 sends the uplink datapacket corresponding to the uplink serial number.

If the uplink serial number is not equal to the serial number supposedto be sent at the current moment, the processor 1103 caches the uplinkdata packet corresponding to the uplink serial number.

Optionally, the processor 1103 is further configured to receive, beforesending the downlink data packet to the home gateway by using the firsttunnel and/or the second tunnel, bandwidth information of the firsttunnel and bandwidth information of the second tunnel, and determine theavailable bandwidth of the first tunnel and available bandwidth of thesecond tunnel.

An aggregation gateway according to this embodiment may be configured toperform the technical solutions described in the foregoing methodembodiments. Implementation principles and technical effects aresimilar. Details are not described herein again.

FIG. 12 is a schematic structural diagram of a third embodiment of ahome gateway according to the present application. As shown in FIG. 12,a home gateway 120 according to this embodiment of the presentapplication includes a receiver 1201, a transmitter 1202, and aprocessor 1203.

The receiver 1201 is configured to obtain a first address of the homegateway on a first access network.

The processor 1203 is configured to establish a first tunnel from thehome gateway to an aggregation gateway according to the first address,where a source address of the first tunnel is the first address, and adestination address of the first tunnel is an address of the aggregationgateway.

The receiver 1201 is further configured to obtain a second address ofthe home gateway on a second access network.

The processor 1203 is further configured to establish a second tunnelfrom the home gateway to the aggregation gateway according to the secondaddress, where a source address of the second tunnel is the secondaddress, and a destination address of the second tunnel is the addressof the aggregation gateway.

The processor 1203 is further configured to receive an uplink datapacket sent by a user equipment, and send the uplink data packet to theaggregation gateway by using the first tunnel and/or the second tunnel.

Optionally, the transmitter 1202 is configured to send a first tunnelestablishment request message to the aggregation gateway by using thefirst access network, where the first tunnel establishment requestmessage is used to request for establishing the first tunnel, and thefirst tunnel establishment request message includes an identifier of thehome gateway and the first address.

The receiver 1201 is further configured to receive a first tunnelestablishment success message sent by the aggregation gateway.

The transmitter 1202 is further configured to send a second tunnelestablishment request message to the aggregation gateway by using thesecond access network, where the second tunnel establishment requestmessage is used to request for establishing the second tunnel, and thesecond tunnel establishment request message includes the identifier ofthe home gateway and the second address.

The receiver 1201 is further configured to receive a second tunnelestablishment success message sent by the aggregation gateway.

The transmitter 1202 is further configured to send an IP address requestmessage to a first gateway corresponding to the first access network.

The receiver 1201 is further configured to receive an IP addressresponse message sent by the first gateway, where the IP addressresponse message includes the first address of the home gateway on thefirst access network, and the first address is a first IP address.

The transmitter 1202 is further configured to send an IP address requestmessage to a second gateway corresponding to the second access network.

The receiver 1201 is further configured to receive an IP addressresponse message sent by the second gateway, where the IP addressresponse message includes the second address of the home gateway on thesecond access network, and the second address is a second IP address.

The processor 1203 is further configured to receive the uplink datapacket sent by the user equipment, and perform Generic RouteEncapsulation GRE for the uplink data packet to obtain an uplink GREpacket, where the uplink GRE packet includes an uplink serial number,and the uplink serial number is used to indicate a sequence in which thehome gate sends the uplink GRE packet;

The processor 1203 is further configured to send the uplink GRE packetto the aggregation gateway by using the first tunnel and/or the secondtunnel.

Optionally, the processor 1203 is further configured to, before sendingthe uplink data packet to the aggregation gateway by using the firsttunnel and/or the second tunnel, determine whether available bandwidthof the first tunnel is less than bandwidth required for transmitting theuplink data packet; to select to send the uplink data packet to theaggregation gateway by using the first tunnel when it is determined thatthe available bandwidth of the first tunnel is not less than thebandwidth required for transmitting the uplink data packet; and toselect to send the uplink data packet to the aggregation gateway byusing the second tunnel when it is determined that the availablebandwidth of the first tunnel is less than the bandwidth required fortransmitting the uplink data packet.

Optionally, the processor 1203 is further configured to receive adownlink GRE packet sent by the aggregation gateway by using the firsttunnel and/or the second tunnel, and decapsulate the downlink GRE packetto obtain a downlink data packet and a downlink serial numbercorresponding to the downlink data packet.

The processor 1203 is further configured to determine whether thedownlink serial number is equal to a serial number supposed to be sentat the current moment, where the serial number supposed to be sent atthe current moment is a serial number of the last downlink data packetthat has already been sent by the home gateway at the current momentplus a constant value, and the constant value is a natural number.

If the downlink serial number is equal to the serial number supposed tobe sent at the current moment, the processor 1203 sends the downlinkdata packet corresponding to the downlink serial number.

If the downlink serial number is not equal to the serial number supposedto be sent at the current moment, the processor 1203 caches the downlinkdata packet corresponding to the downlink serial number.

Optionally, the processor 1203 is further configured to determine,before sending the uplink data packet to the aggregation gateway byusing the first tunnel and/or the second tunnel, to send the uplink datapacket to the aggregation gateway by using the first tunnel and/or thesecond tunnel according to a routing policy.

Optionally, the transmitter 1202 is further configured to send, afterestablishing the second tunnel from the home gateway to the aggregationgateway according to the second address, bandwidth information of thefirst tunnel and bandwidth information of the second tunnel to theaggregation gateway, so as to enable the aggregation gateway todetermine the available bandwidth of the first tunnel and availablebandwidth of the second tunnel.

A home gateway according to this embodiment may be configured to performthe technical solutions described in the foregoing method embodiments.Implementation principles and technical effects are similar. Details arenot described herein again.

In the several embodiments provided in the present application, itshould be understood that the disclosed device and method may beimplemented in other manners. For example, the described apparatusembodiment is merely exemplary. For example, the unit or module divisionis merely logical function division and may be other division in actualimplementation. For example, a plurality of units or modules may becombined or integrated into another system, or some features may beignored or not performed. In addition, the displayed or discussed mutualcouplings or direct couplings or communication connections may beimplemented through some interfaces. The indirect couplings orcommunication connections between the devices or modules may beimplemented in electronic, mechanical, or other forms.

The modules described as separate parts may or may not be physicallyseparate, and parts displayed as modules may or may not be physicalmodules, may be located in one position, or may be distributed on aplurality of network units. A part or all of the modules may be selectedaccording to actual needs to achieve the objectives of the solutions ofthe embodiments.

Persons of ordinary skill in the art may understand that all or a partof the steps of the method embodiments may be implemented by a programinstructing relevant hardware. The program may be stored in a computerreadable storage medium. When the program runs, the steps of the methodembodiments are performed. The foregoing storage medium includes: anymedium that can store program code, such as a read-only memory (ROM), arandom-access memory (RAM), a magnetic disk, or an optical disc.

Finally, it should be noted that the foregoing embodiments are merelyintended for describing the technical solutions of the presentapplication, other than limiting the present application. Although thepresent application is described in detail with reference to theforegoing embodiments, persons of ordinary skill in the art shouldunderstand that they may still make modifications to the technicalsolutions described in the foregoing embodiments, or make equivalentsubstitutions to some or all the technical features thereof, withoutdeparting from the spirit and scope of the technical solutions of theembodiments of the present application.

What is claimed is:
 1. A method comprising: sending, by a home gatewayand to a first gateway corresponding to a first access network, a firstInternet Protocol (IP) address request message; receiving, by the homegateway, from the first gateway, and in response to the first IP addressrequest message, a first IP address response comprising a first addressof the home gateway on the first access network; sending, by the homegateway and to a second gateway corresponding to a second accessnetwork, a second IP address request message; receiving, by the homegateway, from the second gateway, and in response to the second IPaddress request message, a second IP address response message comprisinga second address of the home gateway on the second access network;receiving, by an aggregation gateway, first traffic directed to the homegateway; and transmitting, by the aggregation gateway, the first trafficto the home gateway through one of a first tunnel, a second tunnel, orboth the first tunnel and the second tunnel, wherein the first tunnel isbetween the aggregation gateway and the first address, wherein thesecond tunnel is between the aggregation gateway and the second address,and wherein the first tunnel and the second tunnel are associated witheach other.
 2. The method of claim 1, wherein the first tunnel is ageneric routing encapsulation (GRE) tunnel.
 3. The method of claim 1,further comprising further transmitting the first traffic through eitherthe second tunnel or both the first tunnel and the second tunnel when afirst available bandwidth of the first tunnel is less than a requiredbandwidth required for transmitting the first traffic and when a secondavailable bandwidth of the second tunnel is greater than or equal to therequired bandwidth.
 4. The method of claim 1, further comprisingtransmitting the first traffic through either the first tunnel or boththe first tunnel and the second tunnel when a first available bandwidthof the first tunnel is greater than or equal to a required bandwidthrequired for transmitting the first traffic.
 5. The method of claim 1,where a preset bandwidth of the first tunnel is a bandwidth of aphysical line.
 6. The method of claim 1, further comprising: receiving,by the aggregation gateway, second traffic from the home gateway throughone of the first tunnel, the second tunnel, or both the first tunnel andthe second tunnel; and transmitting, by the aggregation gateway, thesecond traffic.
 7. The method of claim 6, where before transmitting thesecond traffic, the method further comprises: obtaining, by theaggregation gateway, first bandwidth information of the first tunnel andsecond bandwidth information of the second tunnel; and determining, bythe aggregation gateway, first available bandwidth of the first tunnelaccording to the first bandwidth information and second availablebandwidth of the second tunnel according to the second bandwidthinformation.
 8. The method of claim 1, wherein a sum of a first presetbandwidth of the first tunnel and a second preset bandwidth of thesecond tunnel is a maximum available bandwidth.
 9. A method implementedby a home gateway and comprising: obtaining a first address of the homegateway on a first access network by: sending, to a first gatewaycorresponding to the first access network, a first Internet Protocol(IP) address request message, and receiving, from the first gateway inresponse to the first IP address request message, a first IP addressresponse comprising the first address; establishing a first tunnelbetween the first address and an aggregation gateway; obtaining a secondaddress of the home gateway on a second access network by: sending, to asecond gateway corresponding to the second access network, a second IPaddress request message, and receiving, from the second gateway inresponse to the second IP address request message, a second IP addressresponse message comprising the second address; establishing a secondtunnel between the second address and the aggregation gateway; receivingfirst traffic from a user equipment; and sending the first traffic tothe aggregation gateway through one of the first tunnel, the secondtunnel, or both the first tunnel and the second tunnel, wherein thefirst tunnel and the second tunnel are associated with each other. 10.The method of claim 9, wherein establishing the first tunnel comprises:sending, to the aggregation gateway using the first access network, afirst tunnel establishment request message comprising the first addressand requesting establishment of the first tunnel; and receiving, fromthe aggregation gateway in response to the first tunnel establishmentrequest message, a first tunnel establishment success message.
 11. Themethod of claim 9, wherein the first tunnel is a generic routingencapsulation (GRE) tunnel.
 12. The method of claim 9, furthercomprising sending the first traffic through the first tunnel when anavailable bandwidth of the first tunnel is greater than or equal to abandwidth required for transmitting the first traffic.
 13. The method ofclaim 9, further comprising sending first bandwidth information of thefirst tunnel and second bandwidth information of the second tunnel. 14.The method of claim 9, wherein a sum of a first preset bandwidth of thefirst tunnel and a second preset bandwidth of the second tunnel is amaximum available bandwidth.
 15. The method of claim 9, furthercomprising further sending the first traffic through either the secondtunnel or both the first tunnel and the second tunnel when a firstavailable bandwidth of the first tunnel is less than a requiredbandwidth required for transmitting the first traffic and when a secondavailable bandwidth of the second tunnel is greater than or equal to therequired bandwidth.
 16. A home gateway comprising: a memory configuredto store instructions; and a processor coupled to the memory andconfigured to execute the instructions to: obtain a first address of thehome gateway on a first access network by: sending, to a first gatewaycorresponding to the first access network, a first Internet Protocol(IP) address request message, and receiving, from the first gateway inresponse to the first IP address request message, a first IP addressresponse comprising the first address; establish a first tunnel betweenthe first address and an aggregation gateway; obtain a second address ofthe home gateway on a second access network by: sending, to a secondgateway corresponding to the second access network, a second IP addressrequest message, and receiving, from the second gateway in response tothe second IP address request message, a second IP address responsemessage comprising the second address; establish a second tunnel betweenthe second address and the aggregation gateway; receive first trafficfrom a user equipment; and send the first traffic to the aggregationgateway through one of the first tunnel, the second tunnel, or both thefirst tunnel and the second tunnel, wherein the first tunnel and thesecond tunnel are associated with each other.
 17. The home gateway ofclaim 16, wherein the processor is further configured to establish thefirst tunnel by: sending, to the aggregation gateway using the firstaccess network, a first tunnel establishment request message comprisingthe first address and requesting establishment of the first tunnel; andreceiving, from the aggregation gateway in response to the first tunnelestablishment request message, a first tunnel establishment successmessage.
 18. The home gateway of claim 16, wherein the first tunnel is ageneric routing encapsulation (GRE) tunnel.
 19. A system comprising: anaggregation gateway; and a home gateway configured to: obtain a firstaddress of the home gateway on a first access network by: sending, to afirst gateway corresponding to the first access network, a firstInternet Protocol (IP) address request message, and receiving, from thefirst gateway in response to the first IP address request message, afirst IP address response comprising the first address; establish afirst tunnel between the first address and the aggregation gateway;obtain a second address of the home gateway on a second access networkby: sending, to a second gateway corresponding to the second accessnetwork, a second IP address request message, and receiving, from thesecond gateway in response to the second IP address request message, asecond IP address response message comprising the second address;establish a second tunnel between the second address and the aggregationgateway; receive first traffic from a user equipment; and send the firsttraffic to the aggregation gateway through one of the first tunnel, thesecond tunnel, or both the first tunnel and the second tunnel, whereinthe first tunnel and the second tunnel are associated with each other.20. A system comprising: a home gateway associated with a first addresson a first access network, associated with a second address on a secondaccess network, and configured to: send, to a first gatewaycorresponding to the first access network, a first Internet Protocol(IP) address request message, receive, from the first gateway inresponse to the first IP address request message, a first IP addressresponse comprising the first address, send, to a second gatewaycorresponding to the second access network, a second IP address requestmessage, and receive, from the second gateway in response to the secondIP address request message, a second IP address response messagecomprising the second address; and an aggregation gateway configured to:receive first traffic directed to the home gateway, and transmit thefirst traffic to the home gateway through one of a first tunnel, asecond tunnel, or both the first tunnel and the second tunnel, whereinthe first tunnel is between the aggregation gateway and the firstaddress, wherein the second tunnel is between the aggregation gatewayand the second address, and wherein the first tunnel and the secondtunnel are associated with each other.